package com.hsc.www.mybatis.test2;

import com.hsc.www.mybatis.Student;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface StudentMapper {

    @Insert("insert into student(name,age,address) values(#{name},#{age},#{address})")
    int insert(Student student);

    @Select("select * from student")
    List<Student> selectAll();


}
